package com.oasystem.utils;

import java.math.BigDecimal;

public class StringUtils {
	public static String removeSpace(String str){
		return str.replaceAll(" ", "");
	}
	
	public static String doubleToString(double amount , int scale){
		BigDecimal d = new BigDecimal(amount);
		return d.setScale(scale,  BigDecimal.ROUND_HALF_UP).toString();
	}
	
	public static void main(String[] args) {
		System.out.println(StringUtils.doubleToString(12.3353, 2));
	}
}
